#ifndef __LIGHTNING_H__
#define __LIGHTNING_H__

#include <time.h>
#include "Actuator.h"

class Lightning : public Actuator {
private:
    time_t nextFlashTime;
    time_t nextSeriesTime;

    int flashesCount; // total flashes count in a series
    int flashesInSeries; // number of flash in a series starting from zero

public:
    Lightning();

public:
    virtual const error_t begin();

    virtual const error_t tick(const tick_t ticks, const time_t time);
};

#endif